<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //取最大值；
    let num1=123,num2=456,max;
    if(num1>num2){
        max=num1;
    }else{
        max=num2;
    }
    console.log(max);
    //出门买两个西红柿，如果看到卖西瓜的，就买一个
    let xhs=2,xg=10;
    if(xg!==0){
        xhs=1;
    }else if(xg===0){
        xhs=2;
    }
    console.log(xhs);
</script>
</html>